importPackage(java.io);
importPackage(java.lang);
importPackage(Packages.invitator.mail);

var mmb = new MessageMailBean();
mmb.setReplyTo('mikolaj.muller@espeo.pl');
mmb.setTo_email('mikolaj.muller@espeo.pl');
mmb.setFrom_name('mikolaj');
mmb.setFrom_email('mikolaj.muller@espeo.pl');
mmb.setSubject('subject');
mmb.setBody('mail content');

var cmb = new ConnectionMailBean();
cmb.setPort(25);
cmb.setSocketFactoryFallback(false);
cmb.setQuitwait(false);
cmb.setHost('smtp.gmail.com');
cmb.setAuth(true);
cmb.setStarttlsEnable(true);
cmb.setLogin('mikolaj.muller@espeo.pl');
cmb.setPassword('');

var mt = new MailTool();
mt.send(cmb, mmb);

print('Hello wrold');